package mornd.autowired2;

import org.springframework.stereotype.Component;

/**
 * @author: mornd
 * @dateTime: 2023/5/12 - 17:57
 */
public interface Dao<T> {

    class Student {}
    class Teacher {}

    @Component("dao1")
    class Dao1 implements Dao<Student> {}

    @Component("dao2")
    class Dao2 implements Dao<Teacher> {}
}
